﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETADTools.Lib
{
  public enum RecordType
  {
    Person,
    EmpPerformance
  }

  public static partial class Converter
  {
    /// <summary>
    /// Convert record type to page key
    /// </summary>
    /// <param name="recordType"></param>
    /// <returns></returns>
    public static string RecordTypeToPageKey(RecordType recordType)
    {
      string pageKey = string.Empty;

      switch (recordType)
      {
        case RecordType.Person:
          pageKey = "PID";
          break;
        case RecordType.EmpPerformance:
          pageKey = "EmpPerfID";
          break;
        default:
          break;
      }

      return pageKey;
    }
  }
}
